package edu.whu.webgis.exception;

public enum ExceptionTypes {
    userNotFound(1000,"用户不存在"),
    passWordError(1001,"密码错误"),
    sectsNotFound(1002,"不存在"),
    taskNotFound(1003,"不存在"),
    insertTaskError(1004,"插入失败"),
    insertRelationError(1005,"插入失败"),
    supportWorkError(1006,"点赞失败"),
    insertWorkError(1007,"添加作品失败"),
    insertCollectionError(1008,"添加藏品失败"),
    deleteTempError(1009,"删除消息失败"),
    addTempError(1010,"添加消息失败"),
    updateUserError(1011,"更新用户失败"),
    updateSectsError(1012,"更新门派失败"),
    globlError(1017,"debug");

    private int code;
    private String msg;

    ExceptionTypes(int code,String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    public int getCode()
    {
        return this.code;
    }

    public String getMsg()
    {
        return this.msg;
    }
}
